<ion-view view-title="{{chat.name}}" align-title="center">
  <ion-content class="padding" ng-controller="PopupCtrl">
    <label class="item item-input">
      课程日期
      <input id="addLesson-date" type="date" name="startDate" placeholder="课程日期" ng-model="addLessonDate" style="text-align: right">
    </label>
    <div class="list">
      <div class="item item-input item-select">
        <div class="input-label">
          课程
        </div>
        <select id="addLesson-lesson" ng-model="addLessonLesson">
          <option selected id="allLesson">全部课程</option>
          <option ng-repeat="x in lessons" id="{{x.id}}" >{{x.name}}</option>
        </select>
      </div>
    </div>
    <div>
      <ul class="list" id="addLesson-stuList">
        <li class="item item-checkbox" ng-repeat="x in students">
          <label class="checkbox checkbox-royal">
            <input type="checkbox" name="studentsId" ng-model="studentsCheck" value="{{x.id}}">
          </label>
          {{x.name}}
        </li>
      </ul>
    </div>
    <div class="padding">
      <button class="button button-block button-royal" ng-click="showConfirm()">提交信息</button>
    </div>
  </ion-content>
</ion-view>
